package com.base.common.edu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author Maple.Chen
 * @Description 学生请假记录实体
 * @Date 20:41 2021/2/3
 **/
@Data
@ApiModel(description = "学生请假记录实体")
@JsonIgnoreProperties(value = {"handler"})
public class StuLeaveLog implements Serializable {

    private static final long serialVersionUID = -7146306025128920158L;
    @ApiModelProperty( value = "请假记录ID,自增序列")
    private Integer leaveLogId;
    @ApiModelProperty( value = "请假人，参照学生实体")
    private Student student;
    @ApiModelProperty( value = "请假事由")
    private String reason;
    @ApiModelProperty( value = "审批状态(-1:已拒绝，0:审核中，1:已批准)")
    private Integer approvalStatus;
    @ApiModelProperty( value = "申请时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty( value = "最后修改时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date lastModifyTime;

}
